//
//  AvaliableCouponViewController.h
//  FD
//
//  Created by Yasin on 2018/10/26.
//  Copyright © 2018 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class AvaliableCouponModel;
@protocol AvaliableCouponVCDelegate <NSObject>

- (void)didSelectedAvaliableCoupon:(AvaliableCouponModel *)couponModel;

@end
@interface AvaliableCouponViewController : UIViewController
/**代理*/
@property (nonatomic,  weak) id<AvaliableCouponVCDelegate> delegate;

/**1-10可用优惠券数组 属性传值
 确认订单界面接口：/user/order/preview 传过来的*/
@property (nonatomic, strong) NSArray *couponListArr;
@end

NS_ASSUME_NONNULL_END

#pragma mark - 1-10不调接口 从前面传过来的。
/**
 {"event":"SUCCESS","data":[{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":5.00,"moneyType":0,"activeDate":1539014400000,"moneyLimit":100.00,"id":1,"quietDate":1543507200000,"title":"5元现金券，满100元可用"},"id":83},{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":5.00,"moneyType":0,"activeDate":1539014400000,"moneyLimit":100.00,"id":1,"quietDate":1543507200000,"title":"5元现金券，满100元可用"},"id":86}],"describe":""}
 */


#pragma mark - 1-15参考数据
/**
 {"event":"SUCCESS","data":{"userCartList":[{"quantity":1,"goods":{"originalPrice":12.00,"ingredientClassify":[{"name":"Toppings","ingredientList":[{"originalPrice":1.00,"name":"Extra Cheese","currentPrice":1.00,"id":878},{"originalPrice":1.00,"name":"Chicken Strips","currentPrice":1.00,"id":879},{"originalPrice":1.00,"name":"Tandoori Chicken","currentPrice":1.00,"id":880},{"originalPrice":1.00,"name":"Ham","currentPrice":1.00,"id":881},{"originalPrice":1.00,"name":"Pepperoni","currentPrice":1.00,"id":882},{"originalPrice":1.00,"name":"Salami","currentPrice":1.00,"id":883},{"originalPrice":1.00,"name":"Beef mince","currentPrice":1.00,"id":884},{"originalPrice":1.00,"name":"Bacon","currentPrice":1.00,"id":885}],"id":2,"free":2}],"currentPrice":8.00,"id":188,"title":"12\" Your own Pizza"},"remark":"不要啦不要辣","id":670},{"quantity":7,"goods":{"originalPrice":9.00,"ingredientClassify":[{"name":"Toppings","ingredientList":[{"originalPrice":1.00,"name":"Extra Cheese","currentPrice":1.00,"id":896},{"originalPrice":1.00,"name":"Chicken Strips","currentPrice":1.00,"id":897},{"originalPrice":1.00,"name":"Tandoori Chicken","currentPrice":1.00,"id":898},{"originalPrice":1.00,"name":"Ham","currentPrice":1.00,"id":899},{"originalPrice":1.00,"name":"Pepperoni","currentPrice":1.00,"id":900},{"originalPrice":1.00,"name":"Salami","currentPrice":1.00,"id":901},{"originalPrice":1.00,"name":"Beef mince","currentPrice":1.00,"id":902},{"originalPrice":1.00,"name":"Bacon","currentPrice":1.00,"id":903}],"id":2,"free":2}],"currentPrice":9.00,"id":189,"title":"10\" Your Own Pizza"},"remark":"","id":669},{"quantity":3,"goods":{"originalPrice":9.00,"ingredientClassify":[],"currentPrice":9.00,"id":189,"title":"10\" Your Own Pizza"},"remark":"","id":668},{"quantity":3,"goods":{"originalPrice":9.00,"ingredientClassify":[],"currentPrice":9.00,"id":189,"title":"10\" Your Own Pizza"},"remark":"","id":667},{"quantity":1,"goods":{"originalPrice":888.00,"ingredientClassify":[],"currentPrice":888.00,"id":201,"title":"奥术大师"},"remark":"","id":650}],"userCouponList":[{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":5.00,"moneyType":0,"activeDate":1546272000000,"moneyLimit":20.00,"id":34,"quietDate":1548864000000,"title":"20-5，全品类，现金券"},"id":34},{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":0.80,"moneyType":1,"activeDate":1546272000000,"moneyLimit":20.00,"id":35,"quietDate":1548864000000,"title":"20-8折，全品类，百分比"},"id":35},{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":0.70,"moneyType":1,"activeDate":1546272000000,"moneyLimit":-1.00,"id":36,"quietDate":1548864000000,"title":"不限金额，7折，全品类，百分比"},"id":36},{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":3.00,"moneyType":0,"activeDate":1546272000000,"rule":{"goods":[189,188]},"moneyLimit":12.00,"id":37,"quietDate":1548864000000,"title":"12-3，限品类，现金券"},"id":37},{"coupon":{"thumbnail":"public/a237abff29c14365acddbab58a3ea565","money":0.80,"moneyType":1,"activeDate":1546272000000,"rule":{"goods":[189,188]},"moneyLimit":12.00,"id":38,"quietDate":1548864000000,"title":"12-8折，限品类，百分比"},"id":38}]},"describe":""}
 */
